<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

//登录注册
Route::get('auth/register','auth\RegisterController@showRegistrationForm');
Route::post('auth/register','auth\RegisterController@register');
Route::get('auth/login','auth\LoginController@showLoginForm');
Route::post('auth/login','auth\LoginController@login');
Route::get('auth/logout','auth\LoginController@logout');


//贷款
Route::get('/', 'IndexController@index');
Route::get('jie', 'ProjectController@jie');
Route::post('jie', 'ProjectController@jiePost');
Route::get('captcha/{data?}', 'ProjectController@getCaptcha');


//借款审核
Route::get('check', 'CheckController@proList');
Route::get('check/{pid}', 'CheckController@checkFrom');
Route::post('check', 'CheckController@checkStore');

//投资

Route::get('touzi/{pid}', 'BidsController@touziFrom');
Route::post('touzi', 'BidsController@touziPost');